package uicontrols 
{
	import ru.gosoplata.model.Provider;
	/**
	 * ...
	 * @author a.orleansky
	 */
	public class ButtonProvider extends ButtonBase 
	{
		public function ButtonProvider(_title:String) 
		{
			super(_title, 0xAAAAAA);
		}
		
		public function set ph_provider2(prv:XML):void 
		{
			provider_name = prv.@name;
			addIcon(Provider.getImagePath(prv));
			
			name=prv.@id;
		}
		
		
		//TODO: осюда и до конца все бред
		/*
		private var phone_prv:UserProvider;
		private var provider_type:String;
		public function set ph_provider(prv:UserProvider):void 
		{
			phone_prv = prv;
			provider_name = phone_prv._name;
			needCaption = "";
			if (phone_prv.caption.length > 0) needCaption = phone_prv.caption;
			if(phone_prv._folder != "other" &&phone_prv._folder != "spa" && phone_prv._folder != "tv" &&phone_prv._folder != "internet"){
				addIcon(TmpModel.IMG_FOLDER+"/" + provider_type + "/logo/" + phone_prv._image);
			}else {
				addIcon(TmpModel.IMG_FOLDER+"/logo/"+phone_prv._folder+"/"+phone_prv._image);
			}
		}
		
		public function get ph_provider():UserProvider {
			return phone_prv;
		}
		
		public function set provider_adress(value:String):void 
		{
			provider_type = value;
		}
		*/
	}

}